package com.seven.mybatis.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/***
 * @author BillyChen
 */
public class User {

    private Integer userId;
    private Integer gender;

    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date registerdate;
    private String phone;
    private String token;
    private String password;
    private String salt;

    //setter ** getter
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getRegisterdate() {
        return registerdate;
    }

    public void setRegisterdate(Date registerdate) {
        this.registerdate = registerdate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
}
